<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminProduct.aspx.cs" Inherits="eStore.UI.AdminProductPage" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlProduct" runat="server" CssClass="art-Post-inner panelwrapper admin estore estoreadminproduct">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                <div class="breadcrumbs">
                        <asp:HyperLink ID="lnkStoreMenu" runat="server" />&nbsp;&gt;
                        <asp:HyperLink ID="lnkCurrentPage" runat="server" CssClass="selectedcrumb" />
                    </div>
                    <fieldset>
                        <legend>
                            <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                        </legend>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <mp:mojoGridView ID="grdProduct" runat="server" AllowPaging="true" AllowSorting="false"
                                    AutoGenerateColumns="false" DataKeyNames="Guid" EnableTheming="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <%# Eval("Name") %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <%# Eval("IsVisible") %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <%# Eval("IsSpecial") %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <%# Eval("CategoryName") %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:HyperLink ID="lnkEdit" runat="server" Text='<%# Resources.eStoreResources.ProductEditButton %>'
                                                    ImageUrl='<%# ImageSiteRoot + "/Data/SiteImages/" + EditContentImage %>' ToolTip='<%# Resources.eStoreResources.ProductEditButton %>'
                                                    NavigateUrl='<%# SiteRoot + "/eStore/AdminProductEdit.aspx" + BuildProductQueryString(Eval("Guid").ToString()) %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl='<%# ImageSiteRoot + "/Data/SiteImages/" + DeleteLinkImage %>'
                                                    AlternateText='<%# Resources.eStoreResources.ProductDeleteButton %>' ToolTip='<%# Resources.eStoreResources.ProductDeleteButton %>'
                                                    CommandName="DeleteItem" CommandArgument='<%# Eval("Guid") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </mp:mojoGridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <div class="settingrow">
                            <asp:HyperLink ID="lnkAddNew" runat="server" />
                            <portal:mojoButton ID="btnAddNew" runat="server" />
                        </div>
                        <div class="cleared">
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
